//
//  @ Project : Galaxy Star Trading System
//  @ File Name : MarketDataApiProxy.h
//  @ Date : 2014/9/5
//  @ Author :
//
//


#if !defined(_CMARKETDATAAPI_PROXY_H_H)
#define _CMARKETDATAAPI_PROXY_H_H

#include "MarketDataApi.h"

namespace GSTrader
{
	namespace TradeService
	{
		class TRADE_SERVICE_API CMarketDataApiProxy
		{
		public:
			CMarketDataApiProxy();
			virtual ~CMarketDataApiProxy();

			bool	CreateApi(int nType, MarketDataApiConnParam& param);
			bool    DestoryApi();
			int		GetConnStatus();
			int		GetType();
			void	Subscribe(CSubscribeInstrument* pSubscribe);
			void	UnSubscribe(CSubscribeInstrument* pSubscribe);
			string	GetKey();
			int		GetClientId();

			int		GetSubscribeCount();

		private:
			CMarketDataApi* m_pMarketDataApi;
		};
	}
}

#endif //_CMARKETDATAAPI_PROXY_H_H